package com.example.myspringboot.Constants;


public class ImChatConstants {

    public static final String MAPPER_TEMPLATE = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"id\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"groupId\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"fromId\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"toId\": {\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"content\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"standard\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"createTime\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"all\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"standard\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
